package com.edroid.apkhooker.db;

import android.test.AndroidTestCase;
import android.util.Log;

public class ImeiDBTest extends AndroidTestCase {
	
	private void log(String msg) {
		Log.e(this.getClass().getSimpleName(), msg+"");
	}

	@Override
	protected void setUp() throws Exception {
		super.setUp();
		ImeiDB.init(getContext());
	}

	@Override
	protected void tearDown() throws Exception {
		super.tearDown();
	}

	public void testRecord() {
		int total = ImeiDB.getImeiDB().getImeiTotal();
		log(total+"");
		log(ImeiDB.getImeiDB().getImeiById(0));
		log(ImeiDB.getImeiDB().getImeiById(total-1));
	}
}
